x86/VT-x: Disable MSR intercept for SHADOW_GS_BASE
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 15 Nov 2013 10:02:17 +0000 (11:02 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 Nov 2013 10:02:17 +0000 (11:02 +0100)
commita82e98d473fd212316ea5aa078a7588324b020e5
treed52357ce54b2f3c2e4af61416f1fbe242dcc6693
parent1e521eddeb51a9f1bf0e4dd1d17efc873eafae41
x86/VT-x: Disable MSR intercept for SHADOW_GS_BASE

Intercepting this MSR is pointless - The swapgs instruction does not cause a
vmexit, so the cached result of this is potentially stale after the next guest
instruction.  It is correctly saved and restored on vcpu context switch.

Furthermore, 64bit Windows writes to this MSR on every thread context switch,
so interception causes a substantial performance hit.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
Acked-by: Jun Nakajima <jun.nakajima@intel.com>
xen/arch/x86/hvm/vmx/vmcs.c